package com.jhinwins.equipmenteb.equipmentebserver.service;

import com.alibaba.fastjson.JSONArray;
import com.alibaba.fastjson.JSONObject;

import java.util.List;

public interface OrderService {
    /**
     * 获取订单
     */
    JSONArray getOrders(Long userid, String orderState);

    /**
     * 结算
     */
    JSONObject settlementByIds(List<Long> orderids, String addr);

    /**
     * 发起归还请求
     */
    JSONObject reqRevert(Long orderid);

    /**
     * 确认归还请求
     */
    JSONObject confirmRevert(Long orderid);
}
